package com.xbongbong.paas.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.FineClueUserEntity;

import java.util.List;

public interface FineClueUserModel extends IModel<FineClueUserEntity> {
    Integer batchUpdateStaff(String corpid, List<String> userIdList, Integer staff,String userId);

    FineClueUserEntity getByKey(String corpid, String userId);

    FineClueUserEntity getUserByStaff(String corpid, String userId,Integer staff);

    Integer batchUpdateDosage(String corpid, List<String> userIdList, Integer type, Integer num);

    /**
     * 获取单个精线索账号
     *
     * @param corpid 公司id
     * @return
     */
    FineClueUserEntity getSingleUserByCorpid(String corpid);
    
    Integer removeLeaveStaff(String corpid, List<String> userIdList);

    void updateBatch(List<FineClueUserEntity> list, String corpid);
}
